package com.appjishu.web.biz.param;

import java.io.Serializable;

/**
 * 查询参数封装基类
 *
 * 
 * @version 1.0
 * @date 2019年2月7日
 * @time 下午10:13:19
 * @since JDK 1.8
 */
public class BaseQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
	 * 页码
	 */
	private int pageIndex = 1;
	/**
	 * 页码兼容
	 */
	private int pageNo = 1;
	
	/**
	 * 页大小
	 */
	private int pageSize = 20;
	
	public BaseQuery() {
		super();
	}

	public BaseQuery(int pageIndex, int pageSize) {
		super();
		this.pageIndex = pageIndex;
		this.pageNo = pageIndex;
		this.pageSize = pageSize;
	}
	
    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageIndex) {
        this.pageNo = pageIndex;
        this.pageIndex = pageIndex;
    }
    
	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
	    this.pageNo = pageIndex;
        this.pageIndex = pageIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
}
